package com.humh.certification.exception;

/**
 * <p>服务异常</p>
 * Create by hgx61 at 2024/10/18
 */

public class ServiceException extends  RuntimeException{

  /**
   * 错误码
   *
   */
  private Integer code;

  /**
   * 错误提示，用户可阅读
   *
   */
  private String msg;

  public ServiceException(Integer code, String message) {
    super(message);
    this.code = code;
  }

  public Integer getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }



}
